package com.esri.core.ogc.wmts;

import com.esri.core.ogc.OwsDescription;

/* loaded from: classes.dex */
public class WMTSStyle extends OwsDescription {
    private String a;
    private boolean b;

    /* JADX INFO: Access modifiers changed from: package-private */
    public WMTSStyle(boolean z) {
        this.b = z;
    }

    public WMTSStyle() {
        this(true);
        this.a = "default";
    }

    public String getIdentifier() {
        return this.a;
    }

    public boolean isDefault() {
        return this.b;
    }

    @Override // com.esri.core.ogc.OwsDescription, com.esri.core.ogc.OwsItem
    public void endElement(String str) {
        if ("Identifier".equals(getCurrentTagName())) {
            a(this.mData.toString());
        }
        super.endElement(str);
    }

    private void a(String str) {
        if (str == null || str.length() <= 0) {
            return;
        }
        this.a = str;
    }
}
